<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">

<h:head>
   <h:outputScript library="js" name="document_ready.js" />
   <link href="#{applicationBean.contextRoot}/resources/css/#{applicationBean.cssTheme}/stil.css" rel="stylesheet"
      type="text/css" />
   <link href="#{applicationBean.contextRoot}/resources/css/#{applicationBean.cssTheme}/theme_style.css"
      rel="stylesheet" type="text/css" />
   <link href="#{applicationBean.contextRoot}/resources/css/mytheme.css" rel="stylesheet" type="text/css" />
   <h:outputStylesheet name="main.css" library="css" />
   <h:outputStylesheet name="global.css" library="css" />

   <script type="text/javascript">
      /*var x=screen.height; 
      var y=screen.width;
      y = y - 23;

      $(function(){
         $('#templateTable').css('width',y);
      });*/
    
      function disableBackButton(){ 
         window.history.forward();
      }
      disableBackButton();
      window.onunload=function(){null};

      var shrinkSize = 0;
   </script>
   <title><ui:insert name="pageTitle">{application}</ui:insert></title>
</h:head>
<h:body>
   <div>
      <h:form id="headerForm">
         <ui:include src="PageHeader.xhtml" />
      </h:form>
   </div>
   <div class="bodyContent">
      <div class="wrapper">
         <h:form id="bodyForm">
            <div class="masthead">
               <div style="padding-top: 23px;">
                  <div class="prev_next noprint">
                     <p:commandLink value="#{appbundle.lbl_back}" styleClass="imageClass"
                        action="#{mainTemplateBean.previousPageAction}" rendered="#{mainTemplateBean.showBackButton}"
                        ajax="false">
                        <!--  h:graphicImage value="#{applicationBean.themeImagePath}back_btn.png" title="Next" alt="Next2"/-->
                     </p:commandLink>
                  </div>
                  <h:panelGroup id="CrumbsPanel" rendered="#{mainTemplateBean.showCrumbs}">
                     <div class="crumbsRoot">
                        <h:outputText value="#{mainTemplateBean.crumbsRoot} > " />
                        <span> <h:outputText value="#{mainTemplateBean.crumbsLast}" /></span>
                     </div>
                  </h:panelGroup>
                  <h:panelGroup id="NotCrumbsPanel" rendered="#{not mainTemplateBean.showCrumbs}">
                     <div class="crumbsRoot">
                        <p:spacer height="10px" />
                     </div>
                  </h:panelGroup>
                  <h:panelGroup id="PageTitlePanel" rendered="#{mainTemplateBean.showTitle}">
                     <div class="pageTitleHeader">
                        <div class="pageTitle">
                           <h:outputText value="#{mainTemplateBean.pageTitle}" />
                        </div>
                     </div>
                  </h:panelGroup>
                  <h:panelGroup id="NotPageTitlePanel" rendered="#{not mainTemplateBean.showTitle}">
                     <p:spacer height="20px" />
                  </h:panelGroup>
               </div>
            </div>

            <!-- div style="padding: 10px 65px;">
            <div style="font-size: 12px;">Anasayfa > Dil Ayarları</div>
            <div style="color: red; font-size: 16px; font-weight: bold;">Anasayfa</div>
         </div-->
         
            <ui:include src="/includes/PopupMessages.xhtml" />
            <ui:include src="/includes/Loading.xhtml" />
         </h:form>
         
         <div class="content">
            <ui:insert name="body"></ui:insert>
         </div>

         <div class="mastfoot group">
            <p id="disclaimer">
               {$name} Copyright &copy;
               <?php echo date('Y'); ?>
            </p>
            <p id="copyright">{$footer}</p>
         </div>
      </div>
   </div>
</h:body>
</html>